<layout name="page" />
<block name="content">
	{:widget('page_header/adv_search',array('name'=>$folder_name,'search'=>'M'))}
	<div class="x-panel hidden" id="adv_search">
		<form method="post" name="form_adv_search" id="form_adv_search" >
			<div class="x-panel-header">
				<h4>高级搜索</h4>
				<div class="split"></div>
				<a  class="btn" id="submit_adv_search">搜索</a>
				<a  class="btn btn-return" id="close_adv_search">关闭</a>
			</div>
			<div class="x-panel-body">
				<div class="frame">
					<div class="box col-12">
						
							<label class="input-label" for="li_name">标题：</label>
							
								<input  class="input" type="text" id="li_name" name="li_name" >
							</div>
						</div>
					</div>
					<div class="box col-12">
						
							<label class="input-label" for="eq_type">流程类型：</label>
							
								<select class="input" name="eq_type" id="eq_type">
									<option value="">全部</option>
									{:fill_option($flow_type_list)}
								</select>
							</div>
						</div>
					</div>
				</div>
				<div class="frame">
					<div class="box col-12">
						
							<label class="input-label" for="eq_user_name">登录人：</label>
							
								<input  class="input" type="text" id="eq_user_name" name="eq_user_name" >
							</div>
						</div>
					</div>
					<div class="box col-12">
						
							<div class="layui-inline">
								<label class="input-label">登录时间：</label>
								<div class="input-inline" style="width: 100px;">
									<input type="text" class="input input-start-date" name="be_create_time" readonly="readonly" />
								</div>
								<div class="layui-form-mid">
									-
								</div>
								<div class="input-inline" style="width: 100px;">
									<input type="text" class="input input-end-date" name="en_create_time" readonly="readonly" />
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</form>
	</div>
	<form method="post" action="" name="form_data" id="form_data">
		<div class="ul-table">
			<ul>
				<li class="thead" >
					<span class="col-8">编号</span>
					<span class="col-10">类型</span>
					<span class="col-16 x1"> 标题 </span>
					<span  class="col-12">登录时间</span>
					<span  class="col-6 "> 登录人</span>
					<span class="col-6 ">状态</span>
					<eq name="folder" value='submit'>
						<span  class="col-6">审批人</span>
					</eq>
				</li>
				<if condition="!empty($list)">
					<li class="no-data">
						没找到数据
					</li>
					<else/>
					<foreach name="list" val="vo">
						<li class="tbody <eq name='folder' value='receive'>{:get_flow_receive_is_read($vo['id'])}</eq>">
							<span class="col-8">{$vo.doc_no}</span>
							<span class="col-10 "> {$vo.type_name}</span>
							<span class="col-16 x1 ">
								<in name="folder" value="darft">
									<a href="{:url('edit','id='.$vo['id'].'&fid='.$folder)}">{$vo.name}
									<else/>
									<a href="{:url('read','id='.$vo['id'].'&fid='.$folder)}">{$vo.name}
								</in>
								<eq name="vo.name|strlen" value="0">
									无标题
								</eq></a> </span>
							<span class="col-12"> {$vo.create_time|to_date='Y-m-d H:i'} </span>
							<span class="col-6">{$vo.user_name}</span>
							<span class="col-6">{$vo.step|show_step}</span>
							<eq name="folder" value='submit'>
								<span  class="col-6">{$arr_emp[$vo['id']]}&nbsp;</span>
							</eq>
						</li>
					</foreach>
				</if>
			</ul>
		</div>
	</form>
	<notempty name="list">
		<div class="pagination">
			{$page}
		</div>
	</notempty>
</block>
<block name="js">
	<script type="text/javascript">
		layui.use(['global'], function() {
			set_return_url(null);
		});
	</script>
</block>
